package com.hzw.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

import java.util.Date;
@Data
@ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@HeadStyle(horizontalAlignment =HorizontalAlignment.CENTER)
public class BookExcelVo {
    @ExcelProperty("书名")
    @ColumnWidth(20)
    private String name;
    @ExcelProperty("价格")
    @ColumnWidth(20)
    private Double price;
    @ExcelProperty("描述")
    @ColumnWidth(30)
    private String description;
   // @DateTimeFormat("yyyy-MM-dd")
    @ColumnWidth(20)
    @ExcelProperty("创建时间")
    private Date createTime;
    @ColumnWidth(15)
    @ExcelProperty("类型")
    private String type;

}
